package com.controller.order;

import com.client.DadaApiResponse;
import com.request.AddAfterQueryReq;
import com.request.AddOrderReq;
import com.service.QueryDeliverFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 查询订单运费接口
 * @author zhang
 */
@RestController
public class QueryDeliverFeeController {
    @Autowired
    private QueryDeliverFeeService queryDeliverFeeService;

    @PostMapping("/api/order/queryDeliverFee")
    public DadaApiResponse queryDeliverFee(@RequestBody AddOrderReq addOrderReq){
        return queryDeliverFeeService.queryDeliverFee(addOrderReq);
    }

    @PostMapping("/api/order/addAfterQuery")
    public DadaApiResponse queryDeliverFee(@RequestBody AddAfterQueryReq addAfterQueryReq){
        return queryDeliverFeeService.addAfterQuery(addAfterQueryReq);
    }

}
